package game;
import com.golden.gamedev.object.Sprite;


public class BonusSmRocks extends AbstractBonus
{
	private int smallRocks;
    public BonusSmRocks (ProgBob progBob, String name, Sprite icon){
        super(progBob, name, icon);
        smallRocks = 0 ;
    }
    
    public BonusSmRocks(){
    	new BonusSmRocks(super.progBob, "Small Rocks", new Sprite(createBufferedImage("resources/bon_smrocks.png")));
    }

    @Override
    public void toggleBonus(){
        smallRocks = 6;
    }

	@Override
	public boolean isOn() {
		bonusBoolean = false;
		if(smallRocks>0){
			bonusBoolean = true;
		}
		return bonusBoolean;
	}

	public void decrement(){
		smallRocks--;
		
	}
	
	@Override
	public void turnOff() {
		smallRocks = 0;
	}

	@Override
	public void turnOn() {
		bonusBoolean = true;
	}
	
	public int getRocks(){
		return smallRocks;
	}
}
